package cz.matasek.dbLogger.exception;

import java.sql.SQLException;

/**
 * Thrown to indicate that connection has not been established successfully.
 *
 * @author Luboš Matásek
 */
public class NoConnectionEstablishedException extends DbLoggerException {

    /**
     * Serial version UID.
     */
    private static final long serialVersionUID = -2325701063147827088L;

    /**
     * Creates a <code>NoConnectionEstablishedException</code> with an error
     * message from the database.
     *
     * @param ex SQLException object
     */
    public NoConnectionEstablishedException(SQLException ex) {
        super(ex.getMessage());
    }
}
